home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
utility
/
horst_2.zip
/
LOGECHO.DOC
< prev
next >
Wrap
Text File
|
1995-12-18
|
1KB
|
39 lines
------------------------------------------------------------------------
LOGECHO Echo with date/time Ver 1.1 (c) 1994 Horst Schaeffer
------------------------------------------------------------------------
LOGECHO was designed to produce custom entries for logfiles: all parts
of the time and date information can be used as individual data.
The program can also be used to get these data into variables.
LOGECHO, like ECHO, is used with (double!) >> redirection symbols.
Tokens (see help with /?, observe upper/lower case!):
$D day $h hour
$M month (01..12) $m minutes
$N month (Jan..Dec) $s seconds
$Y year $c sec/100
$W day of week (Sun..Sat)
$w day of week (0..6)
$$ '$'
Examples:
LOGECHO ---------- $W $D $N $Y, FDNC>> FD.LOG
LOGECHO # $h:$m:$s GUS %NL% node\>> FD.LOG
Use LOGECHO for variables:
To generate a variable with YYMMDD for example, just produce the
appropriate SET command:
LOGECHO set FN=$Y$M$D> temp.bat
call TEMP
Or for a RENAME:
LOGECHO ren FILES.BBS $Y$M$D.BBS> temp.bat
call TEMP
= 17 FEB 1995